package com.kgc.server.service;

import com.kgc.server.pojo.EasybuyCar;
import com.kgc.server.util.ResponseMessage;

import java.util.List;

public interface EasybuyCarService {

    /**
     * 加商品到购物车
     * @param easybuyCar
     * @return
     */
    public ResponseMessage addProductToCar(EasybuyCar easybuyCar);

    /**
     * 查询用户购物车里是否有此商品
     */
    public ResponseMessage selectProductFromUserCar(String userId,String productId);

    /**
     * 修改用户购物车数据
     */
    public ResponseMessage updateUserCar(EasybuyCar easybuyCar);

    /**
     * 查询用户购物车信息
     */
    public ResponseMessage selectUserCar(String userId);

    /**
     * 根据id删除购物车
     */
    public ResponseMessage deleteCarById(String id);
}
